home *** CD-ROM | disk | FTP | other *** search
- Path: news.europeonline.com!usenet
- From: Dieter Schumacher <DSchumacher@europeonline.com>
- Newsgroups: comp.lang.c
- Subject: printing PostScript-Code under Windows
- Date: Sun, 17 Mar 1996 22:57:10 -0800
- Organization: Schumacher Edutainment
- Message-ID: <314D0946.55DA@europeonline.com>
- NNTP-Posting-Host: b3-12-6.xpool.europeonline.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win95; I; 16bit)
-
- I wrote a Programm that writes PostScript-Code to the Print-Manager.
- Everything works (he prints all pages the right way) but at the end of
- every print-job the panel of the PS-printer shows an error or the
- PS-printer prints an error-essage. In the end of the message, you will
- find my (Delphi-)Code. Please help me? (Could you send me an E-mail. I do
- not know if I know how to find you answer in the Newsgroups) Thank you
- very much!
-
- TYPE
- Daten = RECORD
- ByteAnzahl: word;
- Buf: array[1..10240] of Char;
- end;
-
-
- Open Device:
-
- hdcPrn := CreateDC(Driver, Device, Output, NIL);
- StrPCopy(DocName,'Server');
- Escape(hdcPrn, 10, 3, DocName, NIL)
-
-
- Writing to Device:
-
- Escape(hdcPrn, PASSTHROUGH, 0, Daten, NIL)
-
-
- Closing Device:
-
- Escape(hdcPrn, 11, 0, NIL, NIL);
- DeleteDC(hdcPrn);
-
-